package com.ruoyi.common.core.domain.base.datam;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 水管机构登记对象 wi_organ_b
 * 
 * @author hwd
 * @date 2023-02-15
 */
@Data
public class WiOrganB extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 机构编码 */
    private String orgCd;

    private String parentOrgCd;

    /** 机构名称 */
    @Excel(name = "机构名称")
    private String orgNm;

    /** 机构识别码 */
    @Excel(name = "机构识别码")
    private String orgId;

    /** 机构级别 */
    @Excel(name = "机构级别", readConverterExp = "0=省级,1=市级,2=县级,3=乡级,4=村级")
    private String orgLevel;

    /** 机构地址 */
    @Excel(name = "机构地址")
    private String orgAddr;

    /** 负责人 */
    @Excel(name = "负责人")
    private String orgLeader;

    /** 联系人 */
    @Excel(name = "联系人")
    private String orgLinker;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String orgTel;

    /** 备注 */
    @Excel(name = "备注")
    private String orgMark;

    /** 子部门 */
    private List<WiOrganB> children = new ArrayList<WiOrganB>();

    public void setOrgCd(String orgCd) 
    {
        this.orgCd = orgCd;
    }

    public String getOrgCd() 
    {
        return orgCd;
    }
    public void setOrgNm(String orgNm) 
    {
        this.orgNm = orgNm;
    }

    public String getOrgNm() 
    {
        return orgNm;
    }
    public void setOrgId(String orgId) 
    {
        this.orgId = orgId;
    }

    public String getOrgId() 
    {
        return orgId;
    }
    public void setOrgLevel(String orgLevel) 
    {
        this.orgLevel = orgLevel;
    }

    public String getOrgLevel() 
    {
        return orgLevel;
    }
    public void setOrgAddr(String orgAddr) 
    {
        this.orgAddr = orgAddr;
    }

    public String getOrgAddr() 
    {
        return orgAddr;
    }
    public void setOrgLeader(String orgLeader) 
    {
        this.orgLeader = orgLeader;
    }

    public String getOrgLeader() 
    {
        return orgLeader;
    }
    public void setOrgLinker(String orgLinker) 
    {
        this.orgLinker = orgLinker;
    }

    public String getOrgLinker() 
    {
        return orgLinker;
    }
    public void setOrgTel(String orgTel) 
    {
        this.orgTel = orgTel;
    }

    public String getOrgTel() 
    {
        return orgTel;
    }
    public void setOrgMark(String orgMark) 
    {
        this.orgMark = orgMark;
    }

    public String getOrgMark() 
    {
        return orgMark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orgCd", getOrgCd())
            .append("orgNm", getOrgNm())
            .append("orgId", getOrgId())
            .append("orgLevel", getOrgLevel())
            .append("orgAddr", getOrgAddr())
            .append("orgLeader", getOrgLeader())
            .append("orgLinker", getOrgLinker())
            .append("orgTel", getOrgTel())
            .append("orgMark", getOrgMark())
            .toString();
    }
}
